defaultvalue test: ignore show-desktop
authorRyan Lortie <desrt@desrt.ca>
Fri, 15 Nov 2013 14:32:19 +0000 (09:32 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 26 Nov 2013 19:27:59 +0000 (14:27 -0500)
Ignore the "show-desktop" property on GtkPlacesSidebar for the
defaultvalue test.

Currently, "make check" is passing because it runs the test under a xvfb
with no XSETTINGS provider, so we see the Gtk default value.  No matter
what we set the default value to in Gtk, however, there will be some
desktop environment in which someone running the installed test outside
of an xvfb will get the wrong result.  Best to ignore it.

https://bugzilla.gnome.org/show_bug.cgi?id=712302

testsuite/gtk/defaultvalue.c

index 1d9c2af76f10c4612788680bf9bb6e9861fdcc99..bdb0bb67d46646f667481e3111eb6533fcb1d0ad 100644 (file)
@@ -320,6 +320,11 @@ G_GNUC_END_IGNORE_DEPRECATIONS
           strcmp (pspec->name, "resize-grip-visible") == 0)
         continue;
 
+      /* show-desktop depends on desktop environment */
+      if (g_type_is_a (type, GTK_TYPE_PLACES_SIDEBAR) &&
+          strcmp (pspec->name, "show-desktop") == 0)
+        continue;
+
       if (g_test_verbose ())
       g_print ("Property %s.%s\n",
             g_type_name (pspec->owner_type),